#include<iostream>
#include<cstdio>
#include<vector>
#include<cstring>
using namespace std;
string strA[10]={"","","abc","def","ghi","jkl","mno","pqrs","tuv","wxyz"};
vector<string> v;
string digits;
void dfs(int u,string nstr)
{
	if(u==digits.size())
	{
		v.push_back(nstr);
		return;
	}
	int num=digits[u]-'0';
	string str=strA[num];
	for(int i=0;i<str.size();i++)
	{
		dfs(u+1,nstr+str[i]);
	}
}
int main()
{
	cin>>digits;
	//if(digits.empty())
	dfs(0,"");
	for(int i=0;i<v.size();i++)
	{
		cout<<v[i]<<endl;
	}
	return 0;
}
